﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using IntroMVC4.Models.Interface;

namespace IntroMVC4.Models.Services
{
    public class UserProfileService : IUserProfile, IDisposable
    {
        private ProfileModelEntities context;

        public UserProfileService(ProfileModelEntities context)
        {
            this.context = context;
        }

        #region IDisposable Members
        private bool disposed = false;
        protected virtual void Dispose(bool disposing)
        {
            if (!this.disposed)
            {
                if (disposing)
                {
                    context.Dispose();
                }
            }
            this.disposed = true;
        }
        public void Dispose()
        {
            Dispose(true);
            GC.SuppressFinalize(this);
        }
        #endregion

        #region IUserProfile Members

        public bool UpdateProfile()
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
